import logging

from htmltestreport import HTMLTestReport
import unittest

from commom.logging_use import init_log_config
from config import BASE_DIR
from scripts.test_emp_add import TestEmpAdd
from scripts.test_emp_add_params import TestEmpAddParams
from scripts.test_ihrm_login import TsetIhrmLogin


init_log_config(BASE_DIR + "/log/ihrm.log")

suite = unittest.TestSuite()
logging.info("测试套件实例创建成功")
suite.addTest(unittest.makeSuite(TsetIhrmLogin))
suite.addTest(unittest.makeSuite(TestEmpAddParams))
HTMLTestReport("./report/ihrm.html",description="描述",title="标题").run(suite)
logging.info("测试报告生成")

